/**
 * Created by malingling on 15-12-22.
 */
function People(person){
    this.person = person;
}

People.get_person = function(person){
    return person["people"];
}

People.prototype.store_name = function(){
    localStorage.setItem('person',this.person)
}
People.get_name = function(){
    return localStorage.getItem('person')
}

function Restaurant(restaurant){
    this.restaurant = restaurant;
}

Restaurant.get_restaurant_name = function(restaurant){
    //for(key in restaurant["combo"]){
    //    return key;
    //}
    return restaurant["restaurant"]
}
Restaurant.prototype.store_restaurant = function(){
    localStorage.setItem('restaurant',this.restaurant)

}
Restaurant.get_restaurant = function() {
    return localStorage.getItem('restaurant')
}
function Combo(combo){
    this.name = name;
    this.price = price;
}
Combo.get_combo = function(combo,value){
    return combo["combo"][value]
}
Combo.prototype.get_combo_name = function(){
    localStorage.setItem('name',this.name);
}
Combo.prototype.get_combo_price = function(){
    localStorage.setItem('price',this.price)
}
Combo.get_combo_name = function(){
    return localStorage.getItem('name');
}
Combo.get_combo_price = function(){
    return localStorage.getItem('price')
}